package com.chenglu.android.payment.mvp.model;



import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.AddressListBean;
import com.chenglu.android.payment.bean.ComfirmOrderBean;
import com.chenglu.android.payment.bean.CouponListBean;
import com.chenglu.android.payment.bean.PayOrderBean;
import com.chenglu.android.payment.bean.PayTypeConfig;
import com.chenglu.android.payment.bean.PostDayBean;
import com.chenglu.android.payment.bean.PostTimeListBean;
import com.chenglu.android.payment.bean.TenantIdPayMethod;
import com.chenglu.android.payment.mvp.contract.ComfirmOrderContract;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/3/2 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class ComfirmOrderModel implements ComfirmOrderContract.ComfirmOrderModel {


    @Override
    public Observable<ComfirmOrderBean> getComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getRestaurantComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getRestaurantComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getBeautyComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBeautyComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getEducationComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getEducationComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getMinimartComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getMinimartComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getPharmaceuticalsComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getPharmaceuticalsComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getBreedComfirmOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBreedComfirmOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getGenerateOrder(token,requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getRestaurantGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getRestauranGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getBeautyGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBeautyGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getEducationGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getEducationGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getMinimartGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getMinimartGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getPharmaceuticalsGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getPharmaceuticalsGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<ComfirmOrderBean> getBreedGenerateOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBreedGenerateOrder(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getRestaurantCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getRestaurantCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getBeautyCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBeautyCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getEducationCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getEducationCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getMinimartCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getMinimartCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getPharmaceuticalsCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getPharmaceuticalsCouponList(token, requestBody);
    }

    @Override
    public Observable<CouponListBean> getBreedCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getBreedCouponList(token, requestBody);
    }

    @Override
    public Observable<PayTypeConfig> getPayTypeConfig(String shopsTypeId) {
        return RetrofitClientCL.getInstance().getApi().getPayTypeConfig(shopsTypeId);
    }

    @Override
    public Observable<TenantIdPayMethod> getenantIdPayMethod(String token ,String payClient, String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getTenantIdPayMethod(token, payClient, tenantId);
    }

    @Override
    public Observable<PayOrderBean> getPayOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getPayOrder(token, requestBody);
    }

    @Override
    public Observable<AddressListBean> getAddressList(String token) {
        return RetrofitClientCL.getInstance().getApi().getAddressList(token);
    }

    @Override
    public Observable<PostDayBean> getPostDayList() {
        return RetrofitClientCL.getInstance().getApi().getPostDayList();
    }

    @Override
    public Observable<PostTimeListBean> getPostTimeList(int type) {
        return RetrofitClientCL.getInstance().getApi().getPostTimeList(type);
    }
}
